From 8abc2d5b4ef5b573606a4d84fe3abf8b248fd871 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 13 Oct 2005 15:19:29 +0100 Subject: [PATCH] Fix multi-cpu save/restore after the max_vcpu patch. Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendDomainInfo.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index c4c1bd742d..b387df108d 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1012,6 +1012,8 @@ class XendDomainInfo: # shutdown_start_time from killing the domain, for example. self.removeDom() + # Set maximum number of vcpus in domain + xc.domain_max_vcpus(self.domid, int(self.info['vcpus'])) def initDomain(self): log.debug('XendDomainInfo.initDomain: %s %s %s', @@ -1031,9 +1033,6 @@ class XendDomainInfo: xc.domain_setcpuweight(self.domid, self.info['cpu_weight']) - # Set maximum number of vcpus in domain - xc.domain_max_vcpus(self.domid, int(self.info['vcpus'])); - # XXX Merge with configure_maxmem? m = self.image.getDomainMemory(self.info['memory_KiB']) xc.domain_setmaxmem(self.domid, m) -- 2.30.2